#!/bin/bash

#dir=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
#file="$dir/topo.py"

#sudo mn --custom $file --topo hssh --mac --switch ovsk --controller remote -x

USAGE="Usage: $0 s1 s2 s3 ... sN"

if [ "$#" == "0" ]; then
	echo "$USAGE"
	exit 1
fi

while (( "$#" )); do
	sudo ovs-vsctl set Bridge $1 protocols=OpenFlow13 stp_enable=true
	shift
done

